package com.sc.nft.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.RankingBoardDetailsEvenNumber;
import com.sc.nft.entity.dto.ListDetailsListDTO;
import com.sc.nft.entity.vo.ListDetailsListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RankingBoardDetailsNumberMapper {

    IPage<ListDetailsListVO> listDetailsList(@Param("toMp") Page toMp, @Param("listDetailsListDTO") ListDetailsListDTO listDetailsListDTO, @Param("tableSegmentation") String tableSegmentation);

    ListDetailsListVO listDetailsListByUserId(@Param("id") Long id, @Param("userId") Long userId, @Param("tableSegmentation") String tableSegmentation);

    void saveBath(@Param("list") List<RankingBoardDetailsEvenNumber> list, @Param("table") String table);

    void deleteByRankingBoardConfId(@Param("table") String table);

    void deleteOddnumberedTable(@Param("rankingBoardConfId") Long rankingBoardConfId);

    void deleteEvenTable(@Param("rankingBoardConfId") Long rankingBoardConfId);


}
